package cn.jy.boot.controller;

import org.springframework.security.access.annotation.Secured;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
@Secured("ROLE_orderManager")
public class OrderController {
    @RequestMapping("/add")
    public String orderAdd(){
        return"order add";
    }

    @RequestMapping("/remove")
    public String orderRemove(){
        return"order Remove";
    }

    @RequestMapping("/list")
    public String orderList(){
        return"order List";
    }
}
